package com.lw.spring.service.impl;

import com.lw.spring.service.OrderService;

import java.util.Random;

/**
 * @author Administrator
 * @version 1.0
 * @description:
 * @date 2022/3/6 20:54
 */
public class OrderServiceImpl implements OrderService {
    @Override
    public void addOrder() {
        System.out.println("addOrder方法执行了");
    }

    @Override
    public void deleteOrder() {
        System.out.println("deleteOrder方法执行了");
        if(new Random().nextBoolean()){
            int i=1/0;
        }
    }
}
